package com.tos.second.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户实体类
 */
@Data
public class User implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    //定义id属性，类型为Long
    private Long id;
    //定义用户昵称
    private String name;
    //定义用户名属性，类型为String
    private String username;
    //定义密码属性，类型为String
    private String password;
    //性别
    private String sexs;
    //学号
    private String idCard;
    //身份
    private String identity;
    // 状态
    private Integer status;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    //创建人
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
    //更新人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
    //余额
    private BigDecimal balance;
    //邮箱地址
    private String email;
    //手机号码
    private String phone;
    //头像
    private String image;

}
